﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="pgOtros.aspx.cs" Inherits="EGuayas.Web.Auditoria.Promo.Otro.pgOtros" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title><link  href="~/Resources/css/Style.css"  rel="stylesheet" />
    <!-- Load Ext JS --> 
    <script src="../../../Resources/js/Global.js"></script>          
</head>
<body>
    <form id="Form1" runat="server">    
    <ext:ResourceManager ID="ResourceManager1" runat="server" />
    <ext:Viewport ID="Viewport2" runat="server" Layout="Fit">
            <Items>
                   <ext:FormPanel ID="FormPanel1" runat="server" Region="Center" Layout="VBoxLayout">
                    <LayoutConfig>
                            <ext:VBoxLayoutConfig Align="Stretch" />
                    </LayoutConfig>
                 <TopBar> 
                  <ext:Toolbar ID="Toolbar1" runat="server">
                                <Items> 
                                     <ext:ToolbarFill />
                                    <ext:Button ID="ShowTab1" runat="server" Text="Mostrar Documentos" Disabled="true" Icon="PageWhiteStack">
                                        <Listeners>
                                            <Click Handler="#{TabPanel1}.addTab(#{Tab1},0);this.setDisabled(true);" />
                                        </Listeners>
                                    </ext:Button>
                                   <ext:Button ID="ShowTab2" runat="server" Text="Mostrar Informe"  Icon="PagePaste">
                                        <Listeners>
                                            <Click Handler="#{TabPanel1}.addTab(#{Tab2},1);this.setDisabled(true);" />
                                        </Listeners>
                                    </ext:Button>
                                </Items>
                            </ext:Toolbar>
                    </TopBar>
                    <Items>
                      
                              <ext:TabPanel ID="TabPanel1" runat="server" Flex="1"  TabPosition="Left">
                                <Items>   
                                    <ext:Panel ID="Tab1"  Title="Documentos" runat="server" Layout="Fit" Icon="PageWhiteStack" Closable="true" CloseAction="Hide" >
                                        <Items>
                                        <ext:UserControlLoader ID="wuc_load_A004" UserControlID="wuc_loaddoc_mon_a004"  runat="server" Path="~/Auditoria/promotor/wucLoadDoc.ascx" OnComponentAdded="OnLoadDocMonAdded" />                                              
                                        </Items>
                                        <Listeners>
                                            <Close Handler="#{ShowTab1}.setDisabled(false);" />
                                        </Listeners>
                                 </ext:Panel>
                                 <%--::   --%> 
                                 <ext:Panel ID="Tab2" Title="Informe" runat="server" Closable="true" CloseAction="Hide"  Icon="PagePaste" Layout="Fit">
                                        <Items> 
                                             <ext:UserControlLoader ID="uc_correginfodoc_i001" UserControlID="wuc_correginfodoc_bor_i01" runat="server" Path="~/Auditoria/promotor/wucInformeCorrecion.ascx" OnComponentAdded="OnInformeAdded" />                                      
                                        </Items>
                                    <Listeners>
                                        <Close Handler="#{ShowTab2}.setDisabled(false);" />
                                    </Listeners>
                                </ext:Panel>
                               </Items>
                               <Bin></Bin>                       
                        </ext:TabPanel>                       
                   </Items>
                   <BottomBar>
                     <ext:StatusBar 
                            ID="StatusBar2" 
                            runat="server"
                            StatusAlign="Left">
                            <Items>                                
                                <ext:ToolbarTextItem ID="ToolbarTextItem1" runat="server" Text="" Cls="ux-bold-text-item"  Margin="15"/>
                            </Items>
                        </ext:StatusBar>
                    </BottomBar>
       </ext:FormPanel>
            </Items>           
     </ext:Viewport>

    <ext:XScript ID="XScript1" runat="server">
    <script type="text/javascript">
        var pgFn = new Object();
        pgFn.presentaMensaje = true;

        pgFn.Test = function () {
            alert("OK");
        };
        AppGlobalJs.showWin = function (objwin) {
            objwin.show();
        };
        AppGlobalJs.closeWin = function (objwin) {
            objwin.hide();
        };
        pgFn.menuItemClick = function (menu, item) {
            App.PnlCenter.body.update(Ext.String.format("Clicked: {0}", item.text)).highlight();
        };
 </script>
</ext:XScript> 
 </form>        
</body>


</html>